<?php

namespace plugin\admin\app\model;


/**
 * @property integer $id (主键)
 * @property integer $user_id 用户ID
 * @property string $contribution 贡献值
 * @property integer $current_month_recommend_order_count 当月直推订单数
 * @property integer $rate 转换率
 * @property integer $status 状态
 * @property string $created_time 转换时间
 */
class ContributionToBalanceLog extends Base
{
    /**
     * The table associated with the model.
     *
     * @var string
     */
    protected $table = 'wa_contribution_to_balance_logs';

    /**
     * The primary key associated with the table.
     *
     * @var string
     */
    protected $primaryKey = 'id';
    /**
     * Indicates if the model should be timestamped.
     *
     * @var bool
     */
    public $timestamps = false;

    const SUCCESS = 1;

    const FAIL = 2;

    const STATUS_TEXT = [
        self::SUCCESS => '转换成功',
        self::FAIL => '转换未成功'
    ];
    
}
